// src/trademark/dto/create-trademark.dto.ts
import { IsNotEmpty, MaxLength } from 'class-validator';

export class UpdateTrademarkDto {
  @IsNotEmpty({
    message: 'ID不能为空',
  })
  id: number;

  @IsNotEmpty({ message: '商标名称不能为空' })
  @MaxLength(255)
  name: string;

  @IsNotEmpty({ message: '申请日期不能为空' })
  applicationDate: Date;

  @IsNotEmpty({ message: '注册日期不能为空' })
  registrationDate: Date;

  @IsNotEmpty({ message: '申请人不能为空' })
  @MaxLength(255)
  applicant: string;
}
